package com.intelligentpension.kotlinbluetooth.been

import android.bluetooth.BluetoothDevice
import android.bluetooth.le.ScanResult
import java.util.*
/**
 * 版权：点赞 版权所有
 * author :赵航
 * @e-mail: zhaohangcn@gmail.com
 * time：2022/3/30
 * describe ：
 */
class BleDev(var dev: BluetoothDevice?, var scanResult: ScanResult?) {
    override fun equals(o: Any?): Boolean {
        if (this === o) return true
        if (o == null || javaClass != o.javaClass) return false
        val bleDev = o as BleDev
        return dev == bleDev.dev && scanResult == bleDev.scanResult
    }

    override fun hashCode(): Int {
        return Objects.hash(dev, scanResult)
    }
}